<el-form ref="form" :model="form" :rules="rules" label-width="100px">
    <el-row :gutter="10">

        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="任务类" prop="TASK_CLASS">
                <el-select @change="taskClassChange" v-model="form.TASK_CLASS">
                    <el-option v-for="item in selectOptions.classList" :label="item.value" :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="任务名" prop="TASK_NAME">
                <el-input v-model="form.TASK_NAME"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="任务规则" prop="TASK_RULE">
                <el-input v-model="form.TASK_RULE">
                    <i class="el-icon-search el-input__icon" @click="openTaskRule" slot="suffix">
                    </i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="任务组" prop="TASK_GROUP">
                <el-select v-model="form.TASK_GROUP">
                    <el-option v-for="item in selectOptions.sys_task_group" :label="item.value" :value="item.code"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="同步任务" prop="TASK001" v-if="form.TASK_GROUP == '1'">
                <el-select v-model="form.TASK001">
                    <el-option v-for="item in selectOptions.loadList" :label="item.value" :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="最近五次运行时间" label-width="160px">
                <div v-for="item in dateList">
                    {{item}}
                </div>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="说明" prop="TASK_REMARK">
                <el-input type="textarea" rows="5" v-model="form.TASK_REMARK"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancel">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" @click="sure">保存</el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/system/task_edit"], $.noop);
</script>